import { ILoadMapTypeAll } from '@/common';
import { getLevelZeroJson, getSelectDataCommon, getTenantID } from '@/utils';
import { AssetacquisitionManageAPI } from '../common/type';
/**
 * @param {Object} loadMdicMapList 数据字典
 * @param {Object} areaListData 地区字典
 * */
const ManageSearchColumns = (loadMdicMapList: Record<string, any>): AssetacquisitionManageAPI.IHeaderSearchType => {
  const array: any = loadMdicMapList;
  const searchColumns: AssetacquisitionManageAPI.ISearchList = [
    {
      name: 'inventoryID',
      placeholder: '盘点计划',
      label: '盘点计划',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'assetName',
      placeholder: '资产名称',
      label: '资产名称',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'assetType',
      placeholder: '资产类型',
      label: '资产类型',
      componentType: 'Select',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
      dataSource: array,
    },
    {
      name: 'userName',
      placeholder: '使用人',
      label: '使用人',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
    /**===============================高级搜素================================*/
    {
      name: 'usePositionName',
      placeholder: '使用人部门',
      label: '使用人部门',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: true,
    },
    {
      name: 'isInventory',
      placeholder: '是否盘点',
      label: '是否盘点',
      componentType: 'Select',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: true,
      dataSource: [
        {
          name: '是',
          value: '1',
        },
        {
          name: '否',
          value: '2',
        },
      ],
    },
    {
      name: 'inventoryType',
      placeholder: '盘点结果',
      label: '盘点结果',
      componentType: 'Input',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: true,
    },
  ];

  return searchColumns;
};

export { ManageSearchColumns };
